package object;

public class studentTest {
    public static void main(String[] args) {
        //创建学生的对象
        student s1 = new student();
        s1.name = "张三";
        s1.age = 18;
        s1.sex = "男";

        System.out.println(s1.name);
        System.out.println(s1.age);
        System.out.println(s1.sex);

        s1.eat();
        s1.sleep();
    }
}
